package com.spzx.product.mapper;

import com.spzx.product.domain.SkuStock;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
* @author 老韦
* @description 针对表【sku_stock(商品sku库存表)】的数据库操作Mapper
* @createDate 2024-09-24 22:09:15
* @Entity com.spzx.product.domain.SkuStock
*/
public interface SkuStockMapper extends BaseMapper<SkuStock> {

    boolean checkAndLockStock(@Param("skuId") Long skuId,@Param("skuNum") Long skuNum);

    void releaseStock(@Param("skuId")Long skuId, @Param("skuNum")Long skuNum);
}




